package com.example.expresscabinet.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.expresscabinet.model.getexpress;
import com.example.expresscabinet.model.user;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;

@Mapper
@Repository
public interface getexpressMapper extends BaseMapper<getexpress> {

    @Update("update getexpress " +
            "set states='已取走',cost=#{cost},outtime=#{outtime} " +
            "where code=#{code}")
    void updateStates(@Param("code") String code,@Param("cost") int cost, @Param("outtime")Timestamp outtime);
}
